<?php
class Control_Announce_setTags {
	function setTags() {
		$sql = "select * from @TABLE";
		$tagsInfo = MooDao::get('Tags')->getAll($sql);
		$tags = array();
		foreach ($tagsInfo as $key => $val) {
			$tag['tagId'] 	=  $val['t_id'];
			$tag['tag'] 	=  $val['t_tag'];
			$tags[] = $tag;
		}
		MooView::set('tags', $tags);
	}
}